﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OutStockManager.aspx.cs" Inherits="OutStockManager" %>
<%@ Import Namespace="WX.WMS.DataModel" %>
<%@ Import Namespace="WX.WMS.BLL" %>
    <%@ Register Assembly="WX.WMS.Common" Namespace="WX.WMS.Common" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>出库管理</title>
    
<link href="../css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../JavaScript/jq.js"></script>
        <script type="text/javascript" src="../JavaScript/ymPrompt.js"></script>  
        <script type="text/javascript" src="../JavaScript/AjaxJS.js"></script>

<script type="text/javascript">


</script>
    <style type="text/css">
        .style1
        {
            FONT-WEIGHT: bolder;
            FONT-SIZE: 18pt;
            COLOR: black;
            LINE-HEIGHT: 150%;
            FONT-FAMILY: 楷体_GB2312;
            TEXT-DECORATION: underline;
            height: 50px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div  style=" margin:0 auto; text-align:center;">
        <br />
      <table width="100%" border="0">
          <tr>
              <td class="style1" align="center" colspan="9">
                  出库单维护</td>
          </tr>
          <tr>
              <td align="left">
                  <input id="Button1" type="button" onclick="window.location.replace('OutStockDetail.aspx?action=add')"  value="添加出库单" /></td>
          </tr>
          <tr>
              <td  Width="10%">
                    客户
              </td>
              <td  Width="10%">
                    <asp:TextBox ID="ClientName" runat="server" Width="95%"  ></asp:TextBox>
              </td>
              <td  Width="10%">
                    出仓单号 
              </td>
              <td  Width="10%">
                    <asp:TextBox ID="InStockNo" runat="server"  Width="95%" ></asp:TextBox>
              </td>
              <td  Width="10%">
                    制单用户
              </td>
              <td  Width="10%">
                    <asp:TextBox ID="CreateUser" runat="server"  Width="95%" ></asp:TextBox>
                    </td>
              <td  Width="10%">
                    出仓类型
                    </td>
              <td  Width="10%">
                    <asp:DropDownList ID="ddlOutStockType" runat="server" Width="100%"></asp:DropDownList>
                    </td>
              <td  Width="10%">
                    <asp:ImageButton ID="searchButton" runat="server" ImageUrl="~/images/sub_search.gif" OnClick="searchButton_Click" />
                    </td>
          </tr>
          <tr>
            <td>
                     状态
                    </td>
              <td>
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="100%"></asp:DropDownList>
                    </td>
              
              <td>出仓日期</td>
              <td>
                <asp:TextBox ID="InStockDateFrom" runat="server" Width="83px" ></asp:TextBox>
                <IMG style="CURSOR: hand" onclick="fPopUpCalendarDlg(InStockDateFrom);return false;" height=16 
                        alt=弹出日历下拉菜单 src="../images/calendar.gif" width=16>
              </td>
              <td>
                
                  <asp:Label ID="lblTo" runat="server" Text="到"></asp:Label>
              </td>
              <td>
                <asp:TextBox ID="InStockDateTo" runat="server" Width="83px" ></asp:TextBox>
                <IMG style="CURSOR: hand" onclick="fPopUpCalendarDlg(InStockDateTo);return false;" height=16 
                        alt=弹出日历下拉菜单 src="../images/calendar.gif" width=16>
              </td>
              <td></td>
              <td></td>
                    <td>
                    <asp:Label ID="Label1" runat="server" Text="没有您要的信息" Visible="False" ForeColor="Red"></asp:Label>
                    </td>
          </tr>
  <tr>
    <td colspan="9">
 <div  style="BORDER-RIGHT: #a4d5e3 1px solid; margin:0px auto;  BORDER-TOP: #a4d5e3 1px solid; BACKGROUND: url(../images/content_bg1.gif) repeat-x 50% bottom; BORDER-LEFT: #a4d5e3 1px solid;  BORDER-BOTTOM: #a4d5e3 1px solid; ">    
            <cc1:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" AllowPaging="true"  PageSize="10"
                    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                    Width="100%" DataKeyNames="ID" 
         onpageindexchanging="gvOutStockList_PageIndexChanging" 
         onrowdeleting="gvOutStockList_RowDeleting" 
         onrowediting="gvOutStockList_RowEditing"   >
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <Columns>
                       <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="OutStockDetail.aspx?action=view&amp;ID={0}"
                                HeaderText="查看详细" Target="_blank" Text="&lt;img border=0 src=../images/View.gif /&gt;" >
                      <ItemStyle Width="60px" />
                            </asp:HyperLinkField>
                          <asp:BoundField DataField="SERIAL_NO" HeaderText="流水号"  />
                        <asp:BoundField DataField="OutSTOCK_ID" HeaderText="出仓单号"  />
                        <asp:TemplateField HeaderText="出仓日期" >
                             <ItemTemplate>
                             <%# ((T_OUTSTOCK)Container.DataItem).OUTSTOCK_DATE.Value.ToShortDateString()%>
                             </ItemTemplate>                 
                        </asp:TemplateField>                        
                      <asp:TemplateField HeaderText="客户" SortExpression="T_CLIENT.NAME">
                             <ItemTemplate>
                             <%# ((T_OUTSTOCK)Container.DataItem).T_CLIENT.NAME%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                       <asp:TemplateField HeaderText="制单用户" SortExpression="T_SYS_USER1.NAME">
                             <ItemTemplate>
                             <%# ((T_OUTSTOCK)Container.DataItem).T_SYS_USER1 == null ? "" : ((T_OUTSTOCK)Container.DataItem).T_SYS_USER1.NAME%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="制单时间" >
                             <ItemTemplate>
                             <%# ((T_OUTSTOCK)Container.DataItem).CREATE_TIME == null ? "" : ((T_OUTSTOCK)Container.DataItem).CREATE_TIME.Value.ToShortDateString()%>
                             </ItemTemplate>                 
                        </asp:TemplateField>                              
                        <asp:TemplateField HeaderText="审核用户" SortExpression="T_SYS_USER.NAME">
                             <ItemTemplate>
                             <%# ((T_OUTSTOCK)Container.DataItem).T_SYS_USER == null ? "" : ((T_OUTSTOCK)Container.DataItem).T_SYS_USER.NAME %>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="审核时间" >
                             <ItemTemplate>
                             <%# ((T_OUTSTOCK)Container.DataItem).AUDIT_TIME == null ? "" : ((T_OUTSTOCK)Container.DataItem).AUDIT_TIME.Value.ToShortDateString()%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                       <%-- <asp:TemplateField HeaderText="贸易方式" >
                        <ItemTemplate>
                            <%# ((WX.WMS.DataModel.T_OUTSTOCK)Container.DataItem).TRADE%>
                        </ItemTemplate>                 
                        </asp:TemplateField>        
                        <asp:TemplateField HeaderText="运输方式 " >
                        <ItemTemplate>
                            <%# ((WX.WMS.DataModel.T_OUTSTOCK)Container.DataItem).TRANSFER%>
                        </ItemTemplate>                 
                        </asp:TemplateField>     
                        <asp:TemplateField HeaderText="提货车牌 " >
                            <ItemTemplate>
                                    <%# ((WX.WMS.DataModel.T_OUTSTOCK)Container.DataItem).CAR_NO%>
                            </ItemTemplate>                 
                        </asp:TemplateField>   
                        <asp:TemplateField HeaderText="班次号" >
                 <ItemTemplate>
                 <%# ((WX.WMS.DataModel.T_OUTSTOCK)Container.DataItem).TRANSFER_NO%>
                 </ItemTemplate>                 
                 </asp:TemplateField>   --%>
                            <asp:TemplateField HeaderText="出仓类型" SortExpression="TYPE">
                             <ItemTemplate>
                             <%# Enum.GetName(typeof(Enumerations.OutStockType),((T_OUTSTOCK)Container.DataItem).TYPE)%>
                             </ItemTemplate>                 
                         </asp:TemplateField>
                        <asp:TemplateField HeaderText="状态" SortExpression="STATUS">
                             <ItemTemplate>
                             <%# Enum.GetName(typeof(Enumerations.StockStatus),((T_OUTSTOCK)Container.DataItem).STATUS)%>
                             </ItemTemplate>                 
                         </asp:TemplateField>

                        <asp:CommandField  EditText="&lt;img border=0 src=../images/Edit.gif /&gt;" ShowEditButton="true" HeaderText="编辑"/>      
                         <asp:CommandField  DeleteText="&lt;img border=0 src=../images/Close.gif /&gt;" ShowDeleteButton="true" HeaderText="删除"/>                      
                    </Columns>
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
                </cc1:GridView>        

</div>
    </td>
  </tr>
  <tr>
    <td style="height: 17px" align="center">&nbsp;
    </td>
  </tr>
</table>
    
    </div>
    </form>
</body>
</html>
